package com.yang.service;

import com.yang.pojo.Food;
import com.yang.pojo.FoodType;

import java.util.List;
import java.util.Map;

/**
 * Created by 杨天可 on 2022/3/29 11:46
 */
public interface FoodService {

    /* 修改/新增菜品*/
    Map<String, Object> save(Food food);

    /* 删除菜品*/
    Map<String, Object> delFood(Integer foodId);

    /* 查找所有菜品*/
    Map<String, Object> findAll(Integer userId,Integer foodTypeId, String name, Integer page, Integer limit);

    List<Food> findByType(String foodTypeId, Integer userId);

    Food findFoodById(Integer foodId);

}
